package com.dc.business.datacollectbusiness.mapper;

import com.dc.business.datacollectbusiness.entity.Factories;
import com.dc.business.datacollectbusiness.entity.WorkShop;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface WorkShopMapper {
    /**
     * 查询厂区下的车间
     */
    public List<WorkShop> selectAllWorkShopByFactoryId(Integer factoryId);

    /**
     * 删除车间
     */
    public boolean deleteWorkShopsById(int workShopId);
    /**
     * 添加车间
     */
    public boolean insertWorkShops(WorkShop workShop);
    /**
     * 修改车间
     */
    public boolean updateWorkShops(WorkShop workShop);

    /**
     * 修改车间孩子
     */
    public boolean updateWorkShops2(WorkShop workShop);
}
